/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.media.entity;

import com.thinkgem.jeesite.modules.hk.sys.entity.adv.HkCategory;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 自媒体圈子Entity
 * @author 罗天文
 * @version 2018-05-14
 */
public class HkMediaCategoryCircle extends DataEntity<HkMediaCategoryCircle> {
	
	private static final long serialVersionUID = 1L;
	private HkCategory hkCategory;		// 分类id
	private HkUser user;		// 用户id
	private String name;		// 名称
	private String state;		// 是否发布
	private String recommend;		// 是否推荐
	private String coverImgSrc;		// 图片地址
	private String coverImgWidth;		// 图片宽
	private String coverImgHeight;		// 图片高
	private String introduction;

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public HkMediaCategoryCircle() {
		super();
	}

	public HkMediaCategoryCircle(String id){
		super(id);
	}

	public HkCategory getHkCategory() {
		return hkCategory;
	}

	public void setHkCategory(HkCategory hkCategory) {
		this.hkCategory = hkCategory;
	}
	
	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=1, message="是否发布长度必须介于 0 和 1 之间")
	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Length(min=0, max=1, message="是否推荐长度必须介于 0 和 1 之间")
	public String getRecommend() {
		return recommend;
	}

	public void setRecommend(String recommend) {
		this.recommend = recommend;
	}
	
	@Length(min=0, max=200, message="图片地址长度必须介于 0 和 200 之间")
	public String getCoverImgSrc() {
		return coverImgSrc;
	}

	public void setCoverImgSrc(String coverImgSrc) {
		this.coverImgSrc = coverImgSrc;
	}
	
	@Length(min=0, max=10, message="图片宽长度必须介于 0 和 10 之间")
	public String getCoverImgWidth() {
		return coverImgWidth;
	}

	public void setCoverImgWidth(String coverImgWidth) {
		this.coverImgWidth = coverImgWidth;
	}
	
	@Length(min=0, max=10, message="图片高长度必须介于 0 和 10 之间")
	public String getCoverImgHeight() {
		return coverImgHeight;
	}

	public void setCoverImgHeight(String coverImgHeight) {
		this.coverImgHeight = coverImgHeight;
	}
	
}